﻿@model HinduShop.UI.ViewModels.Account.RoleListViewModel

@{
    ViewBag.Title = "RoleList";
}

<h2>Все роли</h2>

<p>@Html.ActionLink("Перейти к StoreManagerController","Index", "StoreManager") </p>

<p>@Html.ActionLink("Добавить роль","AddRole") </p>

<table>
    <tr>
        <th>Id</th>
        <th>RoleName</th>
        <th></th>
    </tr>
    @foreach (var item in Model.Roles)
    {
        <tr>
            <td>@Html.DisplayFor((modelItem => item.Id))</td>
            <td>@Html.DisplayFor(modelItem => item.RoleName)</td>
            <td>
@*                @Html.ActionLink("Edit", "Edit", new { id = item.Id });*@
@*                @Html.ActionLink("Details", "Details", new { id = item.Id });*@
                @Html.ActionLink("Delete", "DeleteRole", new { id = item.Id });
            </td>
        </tr>
    }
</table>
